import request from '@/utils/request'

export const addOneRole = (data) =>
  request({
    url: '/addOneRole',
    method: 'put',
    data: data || {}
  })

export const updateOneRoleById = (data) =>
  request({
    url: '/updateOneRoleById',
    method: 'patch',
    data: data || {}
  })

export const getRoleListAll = () =>
  request({
    url: '/getRoleListAll',
    method: 'get'
  })

// export const getOneRoleById = id => request({
//   url: '/getOneRoleById' + id,
//   method: 'get'
// })
